<nz-card [nzTitle]="'空间'+ (this.id ? '编辑' : '创建') " [nzExtra]="extraTemplate">
    <smart-editor #form [fields]="fields" [values]="data"></smart-editor>
</nz-card>

<ng-template #extraTemplate>
    <button nz-button nzType="primary" (click)="onSubmit()">保存</button>
</ng-template>
<ng-template #chooseProject let-control="control" let-field="field">
    <app-input-project [formControl]="control"></app-input-project>
</ng-template>
